﻿/*
 * @author: wizardc
 */

using MessagePack;

namespace Dou.GPU
{
    /// <summary>
    /// GPU 动画数据
    /// </summary>
    [MessagePackObject(true)]
    public class GPUAnimData
    {
        /// <summary>
        /// 总帧数
        /// </summary>
        public int frameCount;
        /// <summary>
        /// 骨骼数量
        /// </summary>
        public int boneCount;
        /// <summary>
        /// 所有动画剪辑数据
        /// </summary>
        public GPUAnimClipData[] clips;
    }

    /// <summary>
    /// GPU 动画剪辑数据
    /// </summary>
    [MessagePackObject(true)]
    public class GPUAnimClipData
    {
        /// <summary>
        /// 剪辑名称
        /// </summary>
        public string name;
        /// <summary>
        /// 起始索引
        /// </summary>
        public int startIndex;
        /// <summary>
        /// 帧数
        /// </summary>
        public int frameCount;
        /// <summary>
        /// 帧间隔时间
        /// </summary>
        public float frameTime;
        /// <summary>
        /// 是否循环
        /// </summary>
        public bool isLoop;
    }
}